<template>
<h1>我是父组件</h1>
<son
 ref ="sonRef" content="what" @sends="send"></son>
</template>
<script setup lang="ts">
import son from '../components/son/index.vue';
import {  ref } from "vue";
import { Interface } from 'readline';
const sonRef=ref<InstanceType <typeof son>>()
const send=(val:any)=>{
  console.log(22)
console.log('我姓看的值',val)
}
console.log('父组件查看到的值',sonRef.value)
</script>

<style>
@media (min-width: 1024px) {
  .about {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}
</style>
